import React from 'react';
import MD5 from "md5";

_.sign = paras => {

    var secret = "app_test";

    //生成key升序数组
    var arr = Object.keys(paras);
    arr.sort();

    var str = '';
    for (var i in arr) {
        var value = paras[arr[i]];
        if (value) str += arr[i] + value.toString();
    }

    return MD5(str + secret);
}
